//
//  NSAttributedString+CoreText.h
//  TNImageEditing
//
//  Created by Name i on 2021/12/21.
//


#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSAttributedString (CoreText)


- (CGSize)tn_sizeWithConstrainedToSize:(CGSize)size;


- (void)tn_drawInContext:(CGContextRef)context
            withPosition:(CGPoint)p
               andHeight:(float)height
                andWidth:(float)width;


- (UIImage* __nullable)tn_createImageWithContentInsets:(UIEdgeInsets)contentInset;

@end

NS_ASSUME_NONNULL_END
